package game;


import javax.swing.*;

/**
 * 游戏窗体
 *
 * @author zl
 */
public class GameFrame
        extends JFrame {
    public GameFrame() {
        setTitle("飞机大战");
        setSize(512, 768);
        setLocationRelativeTo(null);
        setResizable(false);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        GameFrame frame = new GameFrame();
        GamePanel panel = new GamePanel(frame);
        panel.action();
        frame.add(panel);
        frame.setVisible(true);

    }
}
